package io.xccit.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Xccit
 * @Date 2023-02-03
 * @Description HelloController
 */
@Controller
public class HelloController {
    @RequestMapping("/")
    public String index(){
        return "index";
    }

    /**
     * 处理/hello请求
     * @return
     */
    @RequestMapping("/hello")
    public String hello(){
        //返回逻辑页面(/WEB-INF/templates/hello.html)
        return "hello";
    }
}
